package com.iee.patterns.example.event_obv.obv_base;

import com.iee.patterns.example.event_obv.obv_base.Event;
import com.iee.patterns.example.event_obv.obv_base.EventListener;

/**
 * 监听器抽象实现类，多了order属性，用于监听器执行顺序
 *@Author longxiaonan@163.com
 *@Date 2022/3/23 0023 19:24
 */
public class AbstractEventListener implements EventListener {

    private int order;

    public int getOrder(){
        return order;
    }

    public AbstractEventListener(int order) {
        this.order = order;
    }

    @Override
    public void onEvent(Event event) {

    }
}
